#ifndef WIDGETCONFIGURATION_H
#define WIDGETCONFIGURATION_H

#include <QtGui/QWidget>

namespace Ui {
    class WidgetConfiguration;
}

class WidgetConfiguration : public QWidget {
    Q_OBJECT
    Q_DISABLE_COPY(WidgetConfiguration)

public:
    explicit WidgetConfiguration(QWidget *parent = 0);
    virtual ~WidgetConfiguration();

    // Setters
    void setPath(QString path);

    // Getters
    QString getPath();

    // Booleans
    bool correctPath(QString path);

signals:
    void rejected();
    void accepted();

protected:
    virtual void changeEvent(QEvent *e);

private:
    Ui::WidgetConfiguration *m_ui;

    bool saveNewPath(QString path);

private slots:
    void on_btnSearchPath_clicked();
    void on_btnRestore_clicked();
    void on_btnDefault_clicked();
    void on_btnApply_clicked();
    void on_btnOK_clicked();
    void on_btnCancel_clicked();
    void timerEvent(QTimerEvent *event);
};

#endif // WIDGETCONFIGURATION_H
